package com.dcy.workflow.convert;

import com.dcy.workflow.vo.in.FlowNodeSaveInVO;
import com.dcy.workflow.model.FlowNode;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author：dcy
 * @Description: 流程节点表 转换类
 * @Date: 2021-06-08
 */
@Mapper
public interface FlowNodeConvert {

    FlowNodeConvert INSTANCE = Mappers.getMapper(FlowNodeConvert.class);

    FlowNode toFlowNode(FlowNodeSaveInVO flowNodeSaveInVO);

    List<FlowNode> toFlowNode(List<FlowNodeSaveInVO> flowNodeSaveInVOS);

}